package com.mf.basic.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * Created by Luke on 2025/3/7 16:04.
 */
@Data
@TableName("sys_permission")
@Accessors(chain = true)
public class DtoPermission {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String permName;
    private String description;
    private Long pid;
    private Integer showOrder;

    @TableField(exist = false)
    private List<DtoPermission> subList;

    @TableField(exist = false)
    private int choose; // 角色是否有该权限
}
